//
//  GaoDeResultCell.m
//  HanlinWeather
//
//  Created by 任翰林 on 2017/4/13.
//  Copyright © 2017年 任翰林. All rights reserved.
//

#import "GaoDeResultCell.h"
#import <Masonry.h>
@implementation GaoDeResultCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if ([super initWithStyle:style reuseIdentifier:reuseIdentifier]) {
        
        [self setUpUI];
    }
    return self;
}

- (void)setUpUI
{
    UILabel * nameLable = [UILabel new];
    [self addSubview:nameLable];
    self.nameLable = nameLable;
    [nameLable mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(@10);
        make.left.equalTo(@20);
        make.right.equalTo(@-20);
        
    }];
    
    
    UILabel * addressLable = [UILabel new];
    [self addSubview:addressLable];
    addressLable.textColor = KLightGray;
    addressLable.font = [UIFont systemFontOfSize:15];
    self.addressLable = addressLable;
    [addressLable mas_makeConstraints:^(MASConstraintMaker *make) {
        
        make.top.equalTo(nameLable.mas_bottom).offset(5);;
        make.left.equalTo(@20);
        make.right.equalTo(@-20);
    }];
    
}





@end
